package code.structure.module.task.data
{
	/**
	 *任务测试配置
	 * @author CYoung
	 * 2014-8-9下午1:04:16
	 */
	public class TaskTestConfig
	{
		public static function get config():Array{
			var _config:Object = new Object();
			
			_config.id = "10010-01"
			_config.taskName = "task";
			_config.taskDec = "this a test task"
			_config.type = 1;
			_config.subTaskList = [1, 2, 3];
			_config.rewardList = [{'id':101,'num':100},{'id':102,'num':200}];
			_config.unlockLevel = 10;
			_config.nextId = ["10010-02"];
			_config.iconId = 1;
			
			return [_config];
		}
		
		public static function get subConfig():Array
		{
			var list:Array = [];
			
			var _config:Object = new Object();
			_config.id = 1;
			_config.dec = "this is a sub task 1";
			_config.requireId = null;
			_config.requireNum = 10;
			_config.type = 1;
			_config.iconId = 1;
			
			list.push(_config);
			
			_config = new Object();
			_config.id = 2;
			_config.dec = "this is a sub task 2";
			_config.requireId = null;
			_config.requireNum = 20;
			_config.type = 1;
			_config.iconId = 1;
			
			list.push(_config);
			
			_config = new Object();
			_config.id = 3;
			_config.dec = "this is a sub task 3";
			_config.requireId = null;
			_config.requireNum = 30;
			_config.type = 1;
			_config.iconId = 1;
			
			list.push(_config);
			
			return list;
		}
		
		
		public static function get dynamicData():Object{
			var obj:Object = new Object();
			obj.finishId = "";
			
			var task:Object = new Object();
			task.id = "10010-01";
			task.progress = [2, 300, -1];
			
			obj.doing = [task];
			return obj;
		}
		
	}
}